//
// Created by wkm on 2023-12-03.
//

#ifndef MYSYSTEMCLEARNING_COMPUTE_H
#define MYSYSTEMCLEARNING_COMPUTE_H

#include "systemc.h"

const int BITS = 2;

enum grade_type {
    fail, pass, excellent
};

SC_MODULE(compute){
    sc_in<sc_uint<BITS> > marks;
    sc_out<grade_type> grade;

    void prc_compute();

    SC_CTOR(compute){
        SC_METHOD(prc_compute);
        sensitive_pos << marks;
    }
};

#endif //MYSYSTEMCLEARNING_COMPUTE_H
